# Firmware generator script
import random
import string

def generate_firmware():
    firmware = ''.join(random.choices(string.ascii_letters + string.digits, k=1024))
    with open("firmware.bin", "w") as f:
        f.write(firmware)
    print("Firmware generated as firmware.bin")

if __name__ == "__main__":
    generate_firmware()